package com.example.study.testserializable;

import java.io.Serializable;

/**
 * bean类
 *
 * @author hjh
 * @create 2019-08-22 23:24
 **/
public class Person implements Serializable{

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    protected String name;
    protected transient int age;


    public Person(){}

    public Person(String name,int age){
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }

    public String toString()
    {
        return "this is person:"+"name:"+this.name+"——age:"+this.age;
    }
}
